#ifndef VIDEOSETTINGSDIALOG_H
#define VIDEOSETTINGSDIALOG_H

#include <QDialog>

#include "NES_Palette.h"

#define NumOfPalette                                              9

namespace Ui {
  class VideoSettingsDialog;
}




class VideoSettingsDialog:public QDialog{
    Q_OBJECT

  public:
    static NES_Palette* Palettes(int Index);

    static int FindPalettesIndex(NES_Palette* palette);

    explicit VideoSettingsDialog(void* mainWindow,QWidget* parent=nullptr);
    ~VideoSettingsDialog();

  protected:
    void closeEvent(QCloseEvent* event);

  private slots:
    void on_comboBox_Mult_currentIndexChanged(int index);

    void on_comboBox_Palette_currentIndexChanged(int index);

    void on_spinBox_VblankNMI_Delay_valueChanged(int arg1);

    void on_spinBox_MMC3_CountDelay_valueChanged(int arg1);

  private:
    Ui::VideoSettingsDialog *ui;

    void* mainWindow;
    bool IsInit;
    int Mult;
    int PaletteIndex;

};




#endif // VIDEOSETTINGSDIALOG_H
